<template>
  <div class="sub-category">
    <div
      class="sub-item"
      v-for="(item, index) in categoryContentList"
      :key="index"
    >
      <img :src="item.image" alt="" />
      <p>{{ item.title }}</p>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    categoryContentList: {
      type: Array,
      default() {
        return [];
      },
    },
  },
};
</script>

<style scoped>
.sub-category {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-left: 10px;
  text-align: center;
}
.sub-item {
  width: 33.3%;
  height: 100px;
  margin-bottom: 10px;
}
.sub-item img {
  width: 65px;
  margin-bottom: 7px;
}
</style>